package org.one.afternoon.service.impl;


import org.one.afternoon.domain.Blog;
import org.one.afternoon.mapper.BlogMapper;
import org.one.afternoon.service.BlogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class BlogServiceImpl implements BlogService {

    @Autowired
    private BlogMapper blogMapper;

    @Override
    public List<Blog> queryOne(Blog student) {
        return blogMapper.queryOne(student);
    }

    @Override
    public boolean update(Blog student) {
        return blogMapper.update(student);
    }

    @Override
    public boolean deleteById(int id) {
        return blogMapper.deleteById(id);
    }

    @Override
    public boolean insert(Blog student) {
        return blogMapper.insert(student);
    }

    @Override
    public List<Blog> findAll() {
        return blogMapper.findAll();
    }
}
